home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / lynxlib.zoo / co.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-22  |  969 b   |  30 lines

  1. /* This source file is part of the LynxLib miscellaneous library by
  2. Robert Fischer, and is Copyright 1990 by Robert Fischer.  It costs no
  3. money, and you may not make money off of it, but you may redistribute
  4. it.  It comes with ABSOLUTELY NO WARRANTY.  See the file LYNXLIB.DOC
  5. for more details.
  6. To contact the author:
  7.     Robert Fischer \\80 Killdeer Rd \\Hamden, CT   06517   USA
  8.     (203) 288-9599     fischer-robert@cs.yale.edu                 */
  9.  
  10. #ifndef STDDEF_H
  11. #include <stddef.h>
  12. #endif
  13.  
  14. /* These are the two kinds of messages -- either pass data or decide to kill */
  15. typedef enum {MSG_DATA, MSG_KILL} message_kind;
  16. typedef union {        /* A message sent, different useful structures for it */
  17.     char *p;
  18.     LONG l;
  19.     int i;
  20.     WORD w;
  21.     char c;
  22. } message;
  23.  
  24. typedef struct {    /* A process control block */
  25.     char *stack;        /* Current stack pointer for process */
  26.     char *stack_base;    /* Low-memory end of stack */
  27. } pcb;
  28.  
  29. extern char *to_master();
  30.